package o;

import android.content.Context;
import android.text.TextUtils;
import com.huawei.appgallery.foundation.account.bean.UserSession;
import com.huawei.cloudservice.CloudAccountManager;
import java.io.File;

public class eoy {
    public static void ˎ(Context context, boolean z) {
        if (!z) {
            if (eoo.ˊ().ˋ().ˏ()) {
                try {
                    eoj.ˋ().ˋ(new ccp(102));
                } catch (Exception e) {
                    Logger.e("ModuleManager", "excuteStateOfLogin: refreshAccountResult fail!");
                }
            }
            ety.ˊ().ˏ(context);
            UserSession.getInstance().setStatus(5);
        }
    }

    public static void ˊ(Context context) {
        ety.ˋ().ˏ();
        eox.ˏ();
        CloudAccountManager.clearAccountData(ContentManager.getInstant().getContext());
        UserSession.getInstance().clear();
        eop.ॱ();
        enx.ॱ(context);
        ety.ˊ().ॱ(context);
        eqi.ˏ().ˎ(null);
        eua.ˏ().ʼ("real_name_verify");
        ˊ();
    }

    private static void ˊ() {
        Object ॱ = epp.ॱ(".DrmSignData");
        if (!TextUtils.isEmpty(ॱ) && !new File(ॱ).delete()) {
            Logger.e("ModuleManager", "delete drm cache failed.");
        }
    }
}
